define(
	[
		'require',
		"apm/ui/grid",
		"broada/ui/dialog",
		'apm/ui/daterangepicker/daterangepicker',
		"apm/ui/serviceRadio/service_radio",
		'apm/ui/myself_select/select',
		'../../business/js/business_config_threshold'
	],
	function(require){

		var View = Ember.View.extend({
			Grid: require("apm/ui/grid"),
			Dialog: require("broada/ui/dialog"),
			daterangepicker: require('apm/ui/daterangepicker/daterangepicker'),
			serviceRadio: require('apm/ui/serviceRadio/service_radio'),
			select: require('apm/ui/myself_select/select'),
			didInsertElement: function(){
				var ctrl = this.get("controller");
				var $viewRoot = this.$();
				$viewRoot.find(".wijmo-wijgrid").css("overflow","visible");
			},
			ThresholdConfig: require('../../business/js/business_config_threshold').extend({
				actions: {
					saved: function(threshold){
						var me = this;
						var ctrl = this.get('_parentView.controller');
						if(ctrl.get('curEditeThreshold')){
							ctrl.updateThreshold(threshold);
						}else{
							// ctrl.addThreshold(threshold);
						}
					}
				}
			})

			
		});

		APM.ServiceServerFollowView = View;

		return View;
	}
);